package AOP.aop;

import IoC.扫描装配.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author zyl
 * @Description
 * @since 2024/1/22 16:47
 */
@RestController
@RequestMapping("aa")
public class UserController {

    @Autowired
    private UserService userService;

    @GetMapping("/print")
    public String aa(){
        User u = new User();
        userService.printUser(u);
        return "aaa";
    }
}
